home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19981211-19990422 / 000009_news@newsmaster….columbia.edu _Mon Dec 14 13:10:51 1998.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id NAA07965
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Mon, 14 Dec 1998 13:10:50 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id NAA26538
  7.     for kermit.misc@watsun; Mon, 14 Dec 1998 13:10:50 -0500 (EST)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!pepmnt
  9. From: pepmnt@watsun.cc.columbia.edu (John Chandler)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: emacs config
  12. Date: 14 Dec 1998 18:10:48 GMT
  13. Organization: Columbia University
  14. Lines: 30
  15. Message-ID: <753kb8$8fp$1@apakabar.cc.columbia.edu>
  16. References: <36742E71.FAD3F77@inka.de>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. X-Newsreader: TIN [version 1.2 PL2]
  19. Xref: news.columbia.edu comp.protocols.kermit.misc:9641
  20.  
  21. Felix E. Klee (felix.klee@inka.de) wrote:
  22. : I use Kermit 3.14 to connect to a remote LINUX machine. However
  23. : when I run emacs 20 some key combinations (page up, page down, 
  24. : home, end, etc.) do not work. They are set up correctly in .emacs 
  25. : and work when emacs is run in X locally on the remote machine. 
  26.  
  27. You have at least two ways to approach this: you can modify your Kermit
  28. setup to send codes that match what emacs expects, or you can modify
  29. your emacs so that it will accept what Kermit sends.  Unfortunately,...
  30.  
  31. : Extract from my .emacs (all my key combinations are set 
  32. : up like this):
  33.  
  34. : (define-key global-map [home] 'beginning-of-line)
  35.  
  36. The "[home]" in that example is a keyboard event, rather than a
  37. character code, and it probably doesn't have an equivalent sequence of
  38. keystrokes (in any case, I haven't found one).  This fact more-or-less
  39. rules out the first approach.  For the second, the details depend on
  40. exactly what codes those keys send.  For example, suppose the home key
  41. is sending "\033[H".  You can then include the following:
  42.  
  43. (define-key global-map "\033[" 'ESC-prefix)
  44. (define-key global-map "\033[H" 'beginning-of-line)
  45.  
  46. You can have multiple definitions in emacs that call out the same
  47. function, so there is no problem in keeping the definitions around
  48. for your various environments simultaneously.
  49.  
  50.                     John Chandler